home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5929 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1012 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: bmatejek@aol.com (BMatejek)
  3. Newsgroups: comp.lang.c++
  4. Subject: CListBox-Problem Multisel <->Singlesel
  5. Date: 7 Feb 1996 09:59:51 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4faep7$eih@newsbf02.news.aol.com>
  9. Reply-To: bmatejek@aol.com (BMatejek)
  10. NNTP-Posting-Host: newsbf02.mail.aol.com
  11.  
  12. Hi folks!
  13.  
  14. I have a big problem -for me. I try to change the ListBox attribute after
  15. having created the Dialog with this ListBox and before opening this
  16. special dialog.
  17.  
  18. Therefor I tried the following terminologie:
  19.  
  20.    CListDialog Dlg(this);  //with member CListBox m_List
  21.    SetWindowLong(Dlg.m_List.m_hWnd, GWL_STYLE,    
  22. GetWindowLong(Dlg.m_List.m_hWnd, GWL_STYLE) | LBS_MULTIPLESELE);
  23.   Dlg.DoModal();
  24.  
  25. BUT IT DOESN T  WORK!
  26.  
  27. In the resource editor I marked the single selection attribute, because I
  28. need this dialog for other functions.
  29.  
  30. It would be very kind if you could help me.
  31.  
  32. Thanks and cu Bernd, Germany
  33.